package model

import "net/http"

func GetGachaLog(cookie string) error {
	url := "https://hk4e-api.mihoyo.com/event/gacha_info/api/getGachaLog"

	req, err := http.NewRequest("GET", url, nil)
	if err != nil {
		return err
	}
	q := req.URL.Query()
	q.Add("", "")
	req.URL.RawQuery = q.Encode()
	req.Header.Set("Accept", "application/json, text/plain, */*")
	req.Header.Set("Origin", "https://webstatic.mihoyo.com")
	req.Header.Set("Referer", "https://webstatic.mihoyo.com/")
	req.Header.Set("Cookie", cookie)
	req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36")

	client := http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		return err
	}

}
